package com.example.mydemo.service;
import com.example.mydemo.entity.LogBean;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import java.time.LocalDateTime;
import java.util.List;

@Repository
public interface LogRepository extends MongoRepository<LogBean, String> {
//    Page<LogBean> findAllByCreateDateBetween(LocalDateTime start, LocalDateTime end);
//    Page<LogBean> findAllByCreateDateBefore(LocalDateTime before);
//    Page<LogBean> findAllByUsernameEquals(String name);
    Page<LogBean> findAllByClassName(String className,Pageable pageable);
    Page<LogBean> findAll(Pageable pageable);
}
